package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.UpdateDeviceVersionDao;
import com.cntcdt.api.db.model.UpdateDeviceVersionModel;
import com.cntcdt.api.service.UpdateDeviceVersionService;

public class UpdateDeviceVersionServiceImpl implements UpdateDeviceVersionService {

	@Override
	public List<UpdateDeviceVersionModel> findBySortTime(int sortTime) {
		return UpdateDeviceVersionDao.getInstance().findBySortTime(sortTime);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndUpdateType(int sortTime, int updateType) {
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndUpdateType(sortTime, updateType);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndVersion(int sortTime, String version) {
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndVersion(sortTime, version);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndSearchContent(int sortTime, String searchContent) {
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndSearchContent(sortTime, searchContent);
	}

	@Override
	public UpdateDeviceVersionModel findById(int id) {
		return UpdateDeviceVersionDao.getInstance().findByPrimaryKey(id);
	}

	@Override
	public UpdateDeviceVersionModel findByTermianl(String termianl) {
		return UpdateDeviceVersionDao.getInstance().findByTermianl(termianl);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndUpdateTypeAndTerminals(int sortTime, int updateType,
			String terminals) {
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndUpdateTypeAndTerminals(sortTime, updateType,
				terminals);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndTerminals(int sortTime, String version,
			String terminals) {
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndVersionAndTerminals(sortTime, version, terminals);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndSearchContentAndTerminals(int sortTime, String searchContent,
			String terminals) {
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndSearchContentAndTerminals(sortTime, searchContent,
				terminals);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndTerminals(int sortTime, String terminals) {
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndTerminals(sortTime, terminals);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndUpdateType(int sortTime, String version,
			int updateType) {
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndVersionAndUpdateType(sortTime, version,
				updateType);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndUpdateTypeAndTerminals(int sortTime,
			String version, int updateType, String terminals) {
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndVersionAndUpdateTypeAndTerminals(sortTime, version,
				updateType, terminals);
	}

	@Override
	public boolean updateModel(UpdateDeviceVersionModel updateDeviceVersion) {
		return UpdateDeviceVersionDao.getInstance().update(updateDeviceVersion);
	}

	@Override
	public List<UpdateDeviceVersionModel> findAllVersion() {
		return UpdateDeviceVersionDao.getInstance().findAllVersion();
	}

	@Override
	public List<UpdateDeviceVersionModel> findAllVersion2(String terminals) {
		return UpdateDeviceVersionDao.getInstance().findAllVersion2(terminals);
	}

	@Override
	public int insertModel(UpdateDeviceVersionModel versionModel) {
		return UpdateDeviceVersionDao.getInstance().insert(versionModel);
	}

	@Override
	public List<UpdateDeviceVersionModel> findAllModel() {
		return UpdateDeviceVersionDao.getInstance().findAllModel();
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeNotInTerminals(int sortTime, String terminals) {
		return UpdateDeviceVersionDao.getInstance().findBySortTimeNotInTerminals(sortTime, terminals);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndSoftVersion(int sortTime, String softVersion) {
		// TODO Auto-generated method stub
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndSoftVersion(sortTime, softVersion);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndSoftVersionAndTerminals(int sortTime, String softVersion,
			String terminals) {
		// TODO Auto-generated method stub
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndSoftVersionAndTerminals(sortTime, softVersion,
				terminals);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndSoftVersionAndUpdateType(int sortTime,
			String version, String softVersion, int updateType) {
		// TODO Auto-generated method stub
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndVersionAndSoftVersionAndUpdateType(sortTime,
				version, softVersion, updateType);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndSoftVersionAndSoftVersion(int sortTime, String version,
			String softVersion) {
		// TODO Auto-generated method stub
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndSoftVersionAndSoftVersion(sortTime, version,
				softVersion);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndSoftVersionAndUpdateType(int sortTime, int updateType,
			String softVersion) {
		// TODO Auto-generated method stub
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndSoftVersionAndUpdateType(sortTime, updateType,
				softVersion);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndUpdateTypeAndSoftVersionAndTerminals(int sortTime,
			String version, int updateType, String softVersion, String terminals) {
		// TODO Auto-generated method stub
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndVersionAndUpdateTypeAndSoftVersionAndTerminals(
				sortTime, version, updateType, softVersion, terminals);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndSoftVersionAndTerminals(int sortTime,
			String version, String softVersion, String terminals) {
		// TODO Auto-generated method stub
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndVersionAndSoftVersionAndTerminals(sortTime,
				version, softVersion, terminals);
	}

	@Override
	public List<UpdateDeviceVersionModel> findBySortTimeAndUpdateAndSoftVersionAndTerminals(int sortTime,
			int updateType, String softVersion, String terminals) {
		// TODO Auto-generated method stub
		return UpdateDeviceVersionDao.getInstance().findBySortTimeAndUpdateAndSoftVersionAndTerminals(sortTime,
				updateType, softVersion, terminals);
	}

}
